package com.boliq.lol.adapter;


import com.boliq.lol.R;
import com.boliq.lol.bean.CloudTopBean;
import com.boliq.lol.bean.NewsBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

/**
 * <pre>
 * ================================================
 * 作者: BLQ_SSNB
 * 日期：2021/3/4
 * 邮箱: blq_ssnb@outlook.com
 * 修改次数: 1
 * 描述:
 *      添加描述
 * ================================================
 * </pre>
 */
public class CloudTopAdapter extends BaseQuickAdapter<CloudTopBean, BaseViewHolder> {
    public CloudTopAdapter() {
        super(R.layout.item_cloud_top);

    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CloudTopBean bean) {
//        baseViewHolder.setText(R.id.tv_index, String.valueOf(baseViewHolder.getAdapterPosition()));
        baseViewHolder.setText(R.id.title, bean.getTitle());
        baseViewHolder.setText(R.id.username, bean.getUserName());
        baseViewHolder.setImageResource(R.id.userimage, bean.getUserImage());
        baseViewHolder.setImageResource(R.id.im1, bean.getImage().get(0));
        baseViewHolder.setImageResource(R.id.im2, bean.getImage().get(1));
        baseViewHolder.setImageResource(R.id.im3, bean.getImage().get(2));
        baseViewHolder.setImageResource(R.id.im4, bean.getImage().get(3));


    }
}
